<?php

/**
 * This interface gives the information needed by some classe that is Requestable to the container.
 * 
 * @package    opensocial
 * @subpackage datarequest
 * @author     Daniel Botelho <botelho.daniel@gmail.com>
 */
interface OSDataRequestable
{
  /**
   * This method generates the HTML code of this Request to the container.
   * @param OSDataRequest The OSDataRequest responsible to make the request.
   * @return string the HTML code of this Request.
   */	
  public function generateDataRequest(OSDataRequest $dataRequest);
  
  /**
   * This method returns an Optinal key thats used to identify this request in the response function.
   * @return string The key that identifies this request.
   */
  public function getOptionalKey();
}
